import request from '@/utils/request'

export function listTeacher(query) {
  return request({
    url: '/wsdTeacher/list',
    method: 'get',
    params: query
  })
}

export function getTeacher(id) {
  return request({
    url: '/wsdTeacher/' + id,
    method: 'get'
  })
}

export function addTeacher(data) {
  return request({
    url: '/wsdTeacher',
    method: 'post',
    data: data
  })
}

export function updateTeacher(data) {
  return request({
    url: '/wsdTeacher',
    method: 'put',
    data: data
  })
}

export function delTeacher(id) {
  return request({
    url: '/wsdTeacher/' + id,
    method: 'delete'
  })
}
